<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center mypostingDetails_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub mypostingDetails_fd0_0'>
          <view class='flex flex-wrap align-center mypostingDetails_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  mypostingDetails_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='mypostingDetails_fd0_0_c1_c0'>发布详情</text>
          </view>
          <view class='flex flex-wrap align-center justify-end mypostingDetails_fd0_0_c0'>
            <image class='mypostingDetails_fd0_0_c2_c0' mode="aspectFit" :src='STATIC_URL+"7.png"'></image>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout mypostingDetails_flex_1">
        <view class='flex flex-direction flex-wrap align-stretch mypostingDetails_fd1_0'>
          <view class='flex flex-wrap align-center justify-between mypostingDetails_fd1_0_c0'>
            <text class='mypostingDetails_fd1_0_c0_c0'>{{info.fenlei_name}}品种</text>
            <view class='flex flex-wrap align-center'>
              <text class='mypostingDetails_fd1_0_c0_c1_c0'>{{info.buycate_mingcheng}}</text>
            </view>
          </view>
          <view class='flex flex-wrap align-center justify-between mypostingDetails_fd1_0_c0'>
            <text class='mypostingDetails_fd1_0_c0_c0'>装车价格</text>
            <view class='flex flex-wrap align-center'>
              <text
                class='mypostingDetails_fd1_0_c0_c1_c0'>{{info.zhuangchejiage=='-1' ?'电话沟通' : info.zhuangchejiage}}</text>
              <text class='mypostingDetails_fd1_0_c0_c1_c0' v-if="info.zhuangchejiage!='-1'">斤/元</text>
            </view>
          </view>
          <view class='flex flex-wrap align-center justify-between mypostingDetails_fd1_0_c0'>
            <text class='mypostingDetails_fd1_0_c0_c0'>{{info.fenlei_name}}地址</text>
            <view class='flex flex-wrap align-center'>
              <text class='mypostingDetails_fd1_0_c0_c1_c0'>{{info.suozaidi}}</text>
            </view>
          </view>
          <view class='flex flex-wrap align-center justify-between mypostingDetails_fd1_0_c3'>
            <text class='mypostingDetails_fd1_0_c0_c0'>发布时间</text>
            <view class='flex flex-wrap align-center'>
              <text class='mypostingDetails_fd1_0_c0_c1_c0'>{{info.nian}}年{{info.yue}}月{{info.ri}}日</text>
            </view>
          </view>
        </view>
        <view class='flex flex-direction flex-wrap align-stretch mypostingDetails_fd1_1'>
          <view class='flex flex-wrap align-center mypostingDetails_fd1_1_c0'>
            <text class='mypostingDetails_fd1_1_c0_c0'>{{info.fenlei_name}}要求</text>
          </view>
          <view class='flex flex-wrap align-center mypostingDetails_fd1_1_c1'>
            <view class='flex flex-direction flex-wrap align-start mypostingDetails_fd1_1_c1_c0'>
              <view class='flex flex-wrap align-center'>
                <text class='mypostingDetails_fd1_1_c1_c0_c0_c0'>品种</text>
                <text class='mypostingDetails_fd1_1_c1_c0_c0_c1'>{{info.buycate_mingcheng}}</text>
              </view>
              <view class='flex flex-wrap align-center mypostingDetails_fd1_1_c1_c0_c1'>
                <text class='mypostingDetails_fd1_1_c1_c0_c0_c0'>水分</text>
                <text class='mypostingDetails_fd1_1_c1_c0_c0_c1'>{{info.buyshuifen_id_name}}</text>
              </view>
              <view class='flex flex-wrap align-center mypostingDetails_fd1_1_c1_c0_c1'>
                <text class='mypostingDetails_fd1_1_c1_c0_c0_c0'>容重</text>
                <text class='mypostingDetails_fd1_1_c1_c0_c0_c1'>{{info.buyrongliang_id_name}}</text>
              </view>
            </view>
            <view class='flex flex-direction flex-wrap align-start'>
              <view class='flex flex-wrap align-center'>
                <text class='mypostingDetails_fd1_1_c1_c0_c0_c0'>数量</text>
                <text class='mypostingDetails_fd1_1_c1_c0_c0_c1'>{{info.shuliang}}吨</text>
              </view>
              <view class='flex flex-wrap align-center mypostingDetails_fd1_1_c1_c0_c1'>
                <text class='mypostingDetails_fd1_1_c1_c0_c0_c0'>年份</text>
                <text class='mypostingDetails_fd1_1_c1_c0_c0_c1'>{{info.nianfen}}年</text>
              </view>
              <view class='flex flex-wrap align-center mypostingDetails_fd1_1_c1_c0_c1'>
                <text class='mypostingDetails_fd1_1_c1_c0_c0_c0'>净毛</text>
                <text class='mypostingDetails_fd1_1_c1_c0_c0_c1'>{{info.buyzazhi_id_name}}</text>
              </view>
            </view>
          </view>
          <view class='flex flex-wrap align-center mypostingDetails_fd1_1_c2'>
            <text class='mypostingDetails_fd1_1_c2_c0'>其他要求</text>
          </view>
          <view class='flex flex-wrap align-center mypostingDetails_fd1_1_c3'>
            <text class='mypostingDetails_fd1_1_c3_c0'>{{info.beizhu}}</text>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex benben-flex-layout flex-wrap align-center mypostingDetails_flex_2" v-if="info.zhuangtai==1">
        <view class='flex flex-wrap align-center justify-between flex-sub mypostingDetails_fd2_0'>
          <view class='flex flex-wrap align-center justify-center mypostingDetails_fd2_0_c0'
            @tap.stop="popupShow1706149341379=true">
            <image class='mypostingDetails_fd2_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"9.png"'></image>
            <text class='mypostingDetails_fd2_0_c0_c1'>立刻下架</text>
          </view>
          <view class='flex flex-wrap align-center justify-center mypostingDetails_fd2_0_c1' @tap.stop="handleJumpDiy"
            data-type="navigateTo" :data-url="`/pages/fabu/purchaseonTop/purchaseonTop?aid=${info.aid}`">
            <image class='mypostingDetails_fd2_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"10.png"'></image>
            <text class='mypostingDetails_fd2_0_c1_c1'>置顶</text>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <benben-popup v-model="popupShow1706149341379" :mask="true" :mask-close-able="false" mode='center' :z-index='999'>
        <!---flex布局flex布局开始-->
        <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout mypostingDetails_flex_3">
          <view class='flex flex-direction flex-wrap align-center flex-sub mypostingDetails_fd3_0'>
            <text class='mypostingDetails_fd3_0_c0'>立刻下架</text>
            <text class='mypostingDetails_fd3_0_c1'>您确定要立刻下架该发布的内容</text>
            <view class='flex flex-wrap align-center mypostingDetails_fd3_0_c2'>
              <button class='mypostingDetails_fd3_0_c2_c0' @tap.stop="popupShow1706149341379=false">取消</button>
              <button class='mypostingDetails_fd3_0_c2_c1' @click.stop="updataRre">确定</button>
            </view>
          </view>
        </view>

        <!---flex布局flex布局结束-->

      </benben-popup>


    </view>
  </view>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
        "popupShow1706149341379": false,
        "aid": "",
        info: '',
        tpian: []
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      let {
        aid
      } = options
      if (aid !== undefined) this.aid = aid
      this.getData()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      getData() {
        this.$api.post(global.apiUrls.post656ef5107cf32, {
          aid: this.aid
        }).then(res => {
          if (res.data.code == 1) {
            this.info = res.data.data
            this.tpian = this.info.tupian
          }
        })
      },
      updataRre() {
        this.$api.post(global.apiUrls.post65d5b4b5b0089, {
          aid: this.aid
        }).then(res => {
          if (res.data.code == 1) {
            this.popupShow1706149341379 = false
            uni.navigateBack()
          } else {
            this.$message.info(res.data.msg)
          }
        })
      },
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(248, 248, 250, 1);
    background-size: 100% auto;
  }

  .mypostingDetails_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .mypostingDetails_fd0_0_c2_c0 {
    width: 119rpx;
    height: 55rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .mypostingDetails_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .mypostingDetails_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .mypostingDetails_fd0_0_c0 {
    width: 120rpx;
  }

  .mypostingDetails_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .mypostingDetails_flex_1 {
    padding: 24rpx 30rpx 0rpx 30rpx;
  }

  .mypostingDetails_fd1_1_c3_c0 {
    color: #101010;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 48rpx;
  }

  .mypostingDetails_fd1_1_c3 {
    background: rgba(248, 248, 250, 1);
    margin: 0rpx 24rpx 32rpx 24rpx;
    border-radius: 16rpx;
    background-size: 100% auto;
    padding: 24rpx;
  }

  .mypostingDetails_fd1_1_c2_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .mypostingDetails_fd1_1_c2 {
    margin: 0rpx 24rpx 25rpx 24rpx;
  }

  .mypostingDetails_fd1_1_c1_c0_c1 {
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .mypostingDetails_fd1_1_c1_c0_c0_c1 {
    color: #101010;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .mypostingDetails_fd1_1_c1_c0_c0_c0 {
    margin: 0rpx 56rpx 0rpx 0rpx;
    color: #666666;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .mypostingDetails_fd1_1_c1_c0 {
    margin: 0rpx 178rpx 0rpx 0rpx;
  }

  .mypostingDetails_fd1_1_c1 {
    margin: 24rpx 24rpx 32rpx 24rpx;
  }

  .mypostingDetails_fd1_1_c0_c0 {
    color: #101010;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 32rpx;
  }

  .mypostingDetails_fd1_1_c0 {
    background: url(image-path('8.png')) no-repeat;
    padding: 32rpx 0rpx 32rpx 24rpx;
    background-size: 100% auto;
    border-radius: 16rpx 16rpx 0rpx 0rpx;
  }

  .mypostingDetails_fd1_1 {
    background: rgba(255, 255, 255, 1);
    border-radius: 16rpx;
    background-size: 100% auto;
    margin: 0rpx 0rpx 0rpx 0rpx;
  }

  .mypostingDetails_fd1_0_c3 {
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .mypostingDetails_fd1_0_c0_c1_c0 {
    color: #101010;
    font-size: 32rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .mypostingDetails_fd1_0_c0_c0 {
    color: #666666;
    font-size: 32rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .mypostingDetails_fd1_0_c0 {
    border-bottom: 1px solid #eee;
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .mypostingDetails_fd1_0 {
    background: rgba(255, 255, 255, 1);
    border-radius: 16rpx;
    background-size: 100% auto;
    margin: 0rpx 0rpx 24rpx 0rpx;
    padding: 0rpx 24rpx 0rpx 24rpx;
  }

  .mypostingDetails_flex_2 {
    margin: 40rpx 0rpx 0rpx 0rpx;
  }

  .mypostingDetails_fd2_0_c1_c1 {
    color: #2568AE;
    font-size: 34rpx;
    font-weight: 400;
    line-height: 34rpx;
  }

  .mypostingDetails_fd2_0_c1 {
    background: rgba(37, 104, 174, 0.1);
    width: 333rpx;
    height: 88rpx;
    border-radius: 24rpx;
    background-size: 100% auto;
  }

  .mypostingDetails_fd2_0_c0_c1 {
    color: #666666;
    font-size: 34rpx;
    font-weight: 400;
    line-height: 34rpx;
  }

  .mypostingDetails_fd2_0_c0_c0 {
    width: 36rpx;
    height: 36rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 16rpx 0rpx 0rpx;
  }

  .mypostingDetails_fd2_0_c0 {
    background: rgba(180, 180, 180, 0.1);
    width: 333rpx;
    height: 88rpx;
    border-radius: 24rpx;
    background-size: 100% auto;
  }

  .mypostingDetails_fd2_0 {
    padding: 0rpx 30rpx 0rpx 30rpx;
  }

  .mypostingDetails_flex_3 {
    background: rgba(255, 255, 255, 1);
    width: 540rpx;
    border-radius: 16rpx;
    background-size: 100% auto;
  }

  .mypostingDetails_fd3_0_c2_c1 {
    background: rgba(37, 104, 174, 1);
    border-radius: 100rpx;
    width: 209rpx;
    line-height: 80rpx;
    font-size: 34rpx;
    color: #fff;
    margin: 0rpx 0rpx 0rpx 20rpx;
  }

  .mypostingDetails_fd3_0_c2_c0 {
    border: 1px solid rgba(112, 112, 112, 1);
    background: rgba(255, 255, 255, 1);
    border-radius: 100rpx;
    width: 209rpx;
    line-height: 80rpx;
    font-size: 34rpx;
    color: rgba(112, 112, 112, 1);
    margin: 0rpx 20rpx 0rpx 0rpx;
  }

  .mypostingDetails_fd3_0_c2 {
    margin: 82rpx 0rpx 0rpx 0rpx;
  }

  .mypostingDetails_fd3_0_c1 {
    margin: 32rpx 0rpx 0rpx 0rpx;
    color: #333333;
    font-size: 30rpx;
    font-weight: 400;
    line-height: 52rpx;
  }

  .mypostingDetails_fd3_0_c0 {
    color: #101010;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 32rpx;
  }

  .mypostingDetails_fd3_0 {
    padding: 40rpx 0rpx 40rpx 0rpx;
  }
</style>
